/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package presentation.view;

/**
 *
 * @author Joanna 8a
 */
public class PanelModificarContacto extends javax.swing.JPanel {

    /**
     * Creates new form PanelModificarContacto
     */
    public PanelModificarContacto(int mod) {
        initComponents();
        if(mod==1){
        this.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Eliminar Contacto", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Segoe UI Light", 1, 14), new java.awt.Color(255, 51, 51)));
        jButtonModCont.setText("Eliminar Contacto");
        }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabelNombresModCont = new javax.swing.JLabel();
        jTextFieldNombresModCont = new javax.swing.JTextField();
        jLabelApellidosModCont = new javax.swing.JLabel();
        jTextFieldApellidosModCont = new javax.swing.JTextField();
        jScrollPaneTelsModCont = new javax.swing.JScrollPane();
        jListTelsModCont = new javax.swing.JList();
        jLabelTelsModCont = new javax.swing.JLabel();
        jLabelEmailModCont = new javax.swing.JLabel();
        jTextFieldEmailModCont = new javax.swing.JTextField();
        jButtonModCont = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();

        setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Modificar Contacto", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Segoe UI Light", 1, 14), new java.awt.Color(255, 51, 51))); // NOI18N

        jLabelNombresModCont.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jLabelNombresModCont.setText("Nombres");

        jTextFieldNombresModCont.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jTextFieldNombresModCont.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldNombresModContActionPerformed(evt);
            }
        });

        jLabelApellidosModCont.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jLabelApellidosModCont.setText("Apellidos");

        jTextFieldApellidosModCont.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jTextFieldApellidosModCont.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldApellidosModContActionPerformed(evt);
            }
        });

        jListTelsModCont.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jListTelsModCont.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPaneTelsModCont.setViewportView(jListTelsModCont);

        jLabelTelsModCont.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jLabelTelsModCont.setText("Teléfonos");

        jLabelEmailModCont.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jLabelEmailModCont.setText("E-mail");

        jTextFieldEmailModCont.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jTextFieldEmailModCont.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldEmailModContActionPerformed(evt);
            }
        });

        jButtonModCont.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jButtonModCont.setText("Modificar Contacto");

        jButton1.setFont(new java.awt.Font("Segoe UI Light", 0, 14)); // NOI18N
        jButton1.setText("Volver");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jButtonModCont)
                        .addGap(82, 82, 82)
                        .addComponent(jButton1))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelNombresModCont)
                            .addComponent(jLabelApellidosModCont)
                            .addComponent(jLabelEmailModCont)
                            .addComponent(jLabelTelsModCont))
                        .addGap(30, 30, 30)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPaneTelsModCont, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jTextFieldNombresModCont)
                                .addComponent(jTextFieldApellidosModCont, javax.swing.GroupLayout.DEFAULT_SIZE, 307, Short.MAX_VALUE))
                            .addComponent(jTextFieldEmailModCont, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(16, 16, 16)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombresModCont)
                    .addComponent(jTextFieldNombresModCont, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelApellidosModCont)
                    .addComponent(jTextFieldApellidosModCont, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelTelsModCont)
                    .addComponent(jScrollPaneTelsModCont, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEmailModCont)
                    .addComponent(jTextFieldEmailModCont, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonModCont)
                    .addComponent(jButton1))
                .addContainerGap(36, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jTextFieldNombresModContActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldNombresModContActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldNombresModContActionPerformed

    private void jTextFieldApellidosModContActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldApellidosModContActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldApellidosModContActionPerformed

    private void jTextFieldEmailModContActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldEmailModContActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldEmailModContActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton1ActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButtonModCont;
    private javax.swing.JLabel jLabelApellidosModCont;
    private javax.swing.JLabel jLabelEmailModCont;
    private javax.swing.JLabel jLabelNombresModCont;
    private javax.swing.JLabel jLabelTelsModCont;
    private javax.swing.JList jListTelsModCont;
    private javax.swing.JScrollPane jScrollPaneTelsModCont;
    private javax.swing.JTextField jTextFieldApellidosModCont;
    private javax.swing.JTextField jTextFieldEmailModCont;
    private javax.swing.JTextField jTextFieldNombresModCont;
    // End of variables declaration//GEN-END:variables
}
